package com.spring.demo12.eg6;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author vhans
 */
public class Test {
    @org.junit.Test
    public void test() throws InterruptedException {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MainConfig4.class);
        UserRegisterService bean = context.getBean(UserRegisterService.class);
        bean.registerUser("Vhans");
    }
}
